<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$model_name='会员';
$menu_name='user';
$sub_meun_name='add';
$page_name="添加".$model_name;
//error_reporting(0); //抑制所有错误信息
?>

<?php require_once 'public/header.php';?>
<?php require_once 'public/sidebar.php';?>

<div id="content">
  <div id="content-header">
    <div id="breadcrumb">
        <a href="<?php echo site_url($this->config->item('system_manage_path')."welcome");?>" title="系统首页" class="tip-bottom"><i class="icon-home"></i> 系统首页</a>
        <a href="<?php echo site_url($this->config->item('system_manage_path').$menu_name);?>" title="<?php echo $model_name;?>列表" class="tip-bottom"><?php echo $model_name;?>列表</a> <a class="current">添加<?php echo $model_name;?></a>
    </div>
    <h1><a href="<?php echo site_url($this->config->item('system_manage_path').$menu_name);?>" title="<?php echo $model_name;?>列表" class="tip-bottom"><?php echo $model_name;?>列表</a> <a href="<?php echo site_url($this->config->item('system_manage_path').$menu_name."/add");?>" class="btn btn-primary btn-large fr"><i class="icon-plus icon-white"></i> 添加<?php echo $model_name;?></a></h1> 
  </div>
  <div class="container-fluid">
    <hr>
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-box">
          <div class="widget-title"> <span class="icon"> <i class="icon-plus"></i> </span>
            <h5>添加<?php echo $model_name;?></h5>
          </div>
          <div class="widget-content nopadding">
			  <?php
              $attributes = array('id' => 'basic_validate', 'class' => 'form-horizontal');
              echo form_open($this->config->item('system_manage_path').'user/save/add', $attributes);
              ?>
              <div class="control-group">
                <label class="control-label"><?php echo $model_name;?>帐号：</label>
                <div class="controls">
                  <input type="text" name="adminname" id="adminname" value="">
                </div>
              </div>
              <div class="control-group">
                <label class="control-label"><?php echo $model_name;?>密码：</label>
                <div class="controls">
                  <input type="password" name="password" id="password" value="123456"/> <span class="message"> 默认密码:123456</span>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">重复密码：</label>
                <div class="controls">
                  <input type="password" name="repassword" id="repassword" value="123456"/>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label"><?php echo $model_name;?>状态：</label>
                <div class="controls">
                  <label class="span2"><input type="radio" name="status" value="1" checked/> 开通</label>
                  <label class="span2"><input type="radio" name="status" value="0"/> 关闭</label>
                </div>
              </div>
              <div class="form-actions">
                <input type="submit" value="提交" class="btn btn-success">
                <input type="button" value="取消" class="btn btn-danger" onClick="javascript: location.href='<?php echo $comeurl?>';"  />
                <input type="hidden" name="lcomeurl" value="<?php echo $comeurl?>" />
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<?php require_once 'public/footer.php';?>